#include <QCoreApplication>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    int d;
    float n,m,k;
    cin>>d;
    cin>>n;
    cin>>m;
    switch (d)
    {
    case 1: k=n+m;
        break;
    case 2: k=n-m;
        break;
    case 3: k=n*m;
        break;
    case 4: k=n/m;
        break;
    }
   cout<<k;
    return a.exec();
}
